<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../js库/mock.js"></script>
    <script src="../../js库/vue.js"></script>
    <title>背景综合案例</title>
    <style>
        a{
            text-decoration: none;
            display: inline-block;
            line-height: 30px;
            text-align: center;
            width: 200px;
            height: 30px;
            background-color: coral;
            color: white;
        }
        .a1 {
            background: url(/picture/1.jpg) no-repeat center center;
        }
        .a2 {
            background: url(/picture/2.jpg) no-repeat center center;
        }  
        .a3 {
            background: url(/picture/3.jpg) no-repeat center center;
        } 
         .a4 {
            background: url(/picture/4.jpg) no-repeat center center;
        }
        .a5 {
            background: url(/picture/5.jpg) no-repeat center center;
        }
        .a1:hover {
            background-image: url(/picture/3.jpg) ;
        }
        .a2:hover {
            background-image: url(/picture/4.jpg) ;
        }
        .a3:hover {
            background-image: url(/picture/5.jpg) ;
        }
        .a4:hover {
            background-image: url(/picture/6.jpg) ;
        }
        .a5:hover {
            background-image: url(/picture/7.jpg) ;
        }
    </style>
</head>

<body>
    <div id="root">
        <a href="#" class="a1">五彩缤纷导航</a>
        <a href="#" class="a2">五彩缤纷导航</a>
        <a href="#" class="a3">五彩缤纷导航</a>
        <a href="#" class="a4">五彩缤纷导航</a>
        <a href="#" class="a5">五彩缤纷导航</a>
       
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>